package com.example.trans;

import com.example.Employee;

public class ChangeAddressTransaction extends  ChangeEmployeeTransaction {
    private String newAddress;
    
    public ChangeAddressTransaction(int empId, String newAddress) {
        super(empId);
        this.newAddress =  newAddress;
    }
    @Override
    protected  void doChange(Employee e) {
        e.setAddress(newAddress);
    }
   
}
